export interface Param {
	hostypeString: string;
	fullAddress: string;
}

export interface BookingRule {
	cycle: number;
	releaseTime: string;
	stopTime: string;
	quitDay: number;
	quitTime: string;
	rule: string[];
}

export interface Hospital {
	id: string;
	createTime: string;
	updateTime: string;
	isDeleted: number;
	param: Param;
	hoscode: string;
	hosname: string;
	hostype: string;
	provinceCode: string;
	cityCode: string;
	districtCode: string;
	address: string;
	logoData: string;
	intro?: any;
	route: string;
	status: number;
	bookingRule: BookingRule;
}

//存储全部已有医院的数组类型
export type Content = Hospital[];

export interface Sort {
	sorted: boolean;
	unsorted: boolean;
	empty: boolean;
}

export interface Pageable {
	sort: Sort;
	pageNumber: number;
	pageSize: number;
	offset: number;
	paged: boolean;
	unpaged: boolean;
}

export interface Sort {
	sorted: boolean;
	unsorted: boolean;
	empty: boolean;
}

export interface Data {
	content: Hospital[];
	pageable: Pageable;
	totalPages: number;
	totalElements: number;
	last: boolean;
	first: boolean;
	sort: Sort;
	numberOfElements: number;
	size: number;
	number: number;
	empty: boolean;
}

export interface RootObject {
	code: number;
	message: string;
	data: Data;
	ok: boolean;
}

export interface HospitalLevelAndRegion {
	createTime: string;
	dictCode: string;
	hasChildren: boolean;
	id: number;
	isDeleted: number;
	name: string;
	param: {};
	parentId: number;
	updateTime: string;
	value: string;
}
export type HospitalLevelAndRegionArr = HospitalLevelAndRegion[];
export interface HospitalLevelAndRegionResponseData {
	code: number;
	data: HospitalLevelAndRegionArr;
	message: string;
	ok: boolean;
}

export interface HospitalInfo {
	code: number;
	data: Content;
	message: string;
	ok: boolean;
}
